<?php

namespace Engine\Action\Helper;


class Login extends \Zend_Controller_Action_Helper_Abstract {
    public $cookies_name = 'DEE_ID';
    public $user;
    
    
    public function getForm($options = null) {

        $loginForm = new \Form_Login($options);
        return $loginForm;
    }
    
    public function authentication($email, $password) {
        
        $authAdapter = new \Engine\Auth\Adapter($email, $password);
        $auth = \Zend_Auth::getInstance();
        
        $result = $auth->authenticate($authAdapter);
        if ($result->isValid()){
            print "OK!";
        }
    }
    
    
}
?>
